/* GENERAL -------------------------------------------------- */
.home-container-blue {        background-color: var(--color-blue);         color: var(--color-white);    }    
.home-container-blue .subheading-m {        color: var(--color-white);    }   

/* CAROUSEL-------------------------------------------------- */
    
/* Carousel base class */
.carousel {  margin-bottom: 4rem;}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {  bottom: 3rem;  z-index: 10;}
/* Declare heights because of positioning of img element */
.carousel-item {  height: 32rem;}
.carousel-item > img {  position: absolute;  top: 0;  left: 0;  min-width: 100%;  height: 32rem;}        
.carousel-caption {        background-color: rgba(0, 0, 0, 0.5);   }

/* VACANCIES  -------------------------------------------------- */
.vacancy-panel-type { text-transform: lowercase; }  
.vacancy-panel-type::first-letter { text-transform: uppercase }  
.vacancy-panel-address{ display: none;}    
.vacancy-panel{ background-color: #ecf0f1; border: none; min-height: 280px;border-bottom: 4px solid var(--color-blue); };       
.vacancy-panel-apply { padding-top: 10px; }      
.vacancy-panel-description { display: none; } 
.vacancy-panel-title { font-weight: 700; text-transform: lowercase;} 
.vacancy-panel-title:first-letter { text-transform: uppercase;}

/* NEWS -------------------------------------------------- */
.news-row {  display: flex;  flex-wrap: wrap;}
.news-row .col-md-4 {  display: flex;}
.card-news {  flex: 1;  display: flex;  flex-direction: column;}    
.card-news-title{font-weight: 700;}
.news-panel-image {  width: 100%;  height: auto;  aspect-ratio: 16/9;   object-fit: cover;}
.news-row {  opacity: 0;  transition: opacity .2s ease;}
.news-row.is-visible {  opacity: 1;}
#ViewAllNewsDiv { padding-top: 10px;  padding-bottom: 10px; margin-top: 20px; margin-bottom: 20px; background-color: var(--color-white);    }

/* Redesigned signed-in homepage. Legacy rules above are preserved. */
#portal-home {
    color: var(--portal-ink);
}

#portal-home .ph-wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

#portal-home h1, #portal-home h2, #portal-home h3 {
    color: var(--portal-ink);
}

#portal-home h1 {
    margin: 0 0 20px;
    max-width: 14ch;
    font-size: clamp(2.15rem, 4.2vw, 3.6rem);
    letter-spacing: -.045em;
}

#portal-home h2 {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    letter-spacing: -.025em;
    margin: 0 0 14px;
}

#portal-home h3 {
    margin: 0 0 12px;
}

#portal-home p {
    color: var(--portal-muted);
    margin: 0 0 18px;
}

#portal-home .ph-kicker {
    display: block;
    margin: 0 0 12px;
    color: var(--portal-primary);
    letter-spacing: .025em;
}

#portal-home .ph-hero {
    background: var(--portal-hero-surface);
    padding: 48px 0;
    border-bottom: 1px solid var(--portal-border);
}

#portal-home .ph-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

#portal-home .ph-hero-copy > p {
    max-width: 49ch;
}

#portal-home .ph-photo {
    width: 100%;
    height: 370px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 18px;
}

#portal-home .ph-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

#portal-home .ph-shortcuts {
    padding: 24px 0;
    border-bottom: 1px solid var(--portal-border);
}

#portal-home .ph-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
}

#portal-home .ph-shortcut {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    text-decoration: none;
}

#portal-home .ph-shortcut span:first-child {
    text-decoration: underline;
    text-underline-offset: 4px;
}

#portal-home .ph-section {
    padding: 56px 0;
    scroll-margin-top: 24px;
}

#portal-home .ph-section--tint {
    background: var(--portal-surface);
    border-top: 1px solid var(--portal-section-border);
    border-bottom: 1px solid var(--portal-section-border);
}

#portal-home .ph-section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 24px;
}

#portal-home .ph-section-top p {
    margin: 0;
    max-width: 60ch;
}

#portal-home .ph-section-top h2 {
    margin-bottom: 8px;
}

#portal-home #LatestVacancyPanels > .row, #portal-home .news-row {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    margin: 0;
    opacity: 1;
}

#portal-home #LatestVacancyPanels > .row > *, #portal-home .news-row > * {
    display: flex;
    width: auto;
    min-width: 0;
    padding: 0;
}

#portal-home .vacancy-panel, #portal-home .card-news {
    width: 100%;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: var(--portal-white);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(20,44,70,.03);
}

#portal-home .vacancy-panel-body, #portal-home .card-news .card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

#portal-home .vacancy-panel {
    display: flex;
    flex-direction: column;
}

#portal-home .vacancy-panel-body {
    flex: 1;
}

#portal-home .vacancy-panel-title, #portal-home .card-news-title {
    color: var(--portal-ink);
    margin-bottom: 10px;
}

#portal-home .vacancy-panel-type {
    display: inline-block;
    background: var(--portal-tag-surface);
    color: var(--portal-link);
    padding: 3px 10px;
    border-radius: 5px;
    margin-bottom: 18px;
}

#portal-home .vacancy-panel-salary {
    color: var(--portal-ink);
    margin-bottom: 6px;
}

#portal-home .vacancy-panel-closingdate {
    color: var(--portal-muted);
    font-size: .85rem;
    margin-bottom: 22px;
}

#portal-home .vacancy-panel-divider, #portal-home .vacancy-panel-description, #portal-home .vacancy-panel-address {
    display: none;
}

#portal-home .vacancy-panel-apply {
    margin-top: auto;
}

#portal-home .news-panel-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

#portal-home .news-panel-date {
    color: var(--portal-muted);
    margin-bottom: 12px;
}

#portal-home .news-panel-description {
    color: var(--portal-muted);
    overflow-wrap: anywhere;
}

#portal-home .ph-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

#portal-home .ph-panel {
    padding: 30px;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 14px;
}

#portal-home .ph-panel ul {
    padding-left: 22px;
    color: var(--portal-muted);
    margin: 0 0 22px;
}

#portal-home .ph-panel li + li {
    margin-top: 6px;
}

#portal-home .ph-service-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

#portal-home .ph-service {
    padding: 24px;
    background: var(--portal-white);
    border: 1px solid var(--portal-border);
    border-radius: 12px;
}

#portal-home .ph-service p {
    margin: 0;
}

#portal-home .ph-support {
    padding: 34px;
    border: 1px solid var(--portal-support-border);
    border-radius: 14px;
    background: var(--portal-hero-surface);
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
}

#portal-home .ph-support h2 {
    font-size: 1.5rem;
}

#portal-home .ph-support p {
    margin: 0;
    max-width: 72ch;
}

#portal-home .ph-loading {
    padding: 24px;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    color: var(--portal-muted);
}

@media (max-width:991px) {
    #portal-home .ph-hero-grid {
        gap: 30px;
    }
}

@media (max-width:991px) {
    #portal-home .ph-photo {
        height: 320px;
    }
}

@media (max-width:991px) {
    #portal-home .ph-split {
        gap: 24px;
    }
}

@media (max-width:991px) {
    #portal-home #LatestVacancyPanels > .row, #portal-home .news-row {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:991px) {
    #portal-home .ph-service {
        padding: 20px;
    }
}

@media (max-width:767px) {
    #portal-home .ph-hero-grid, #portal-home .ph-split {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (max-width:767px) {
    #portal-home .ph-hero {
        padding: 32px 0;
    }
}

@media (max-width:767px) {
    #portal-home h1 {
        max-width: 17ch;
    }
}

@media (max-width:767px) {
    #portal-home .ph-photo {
        height: 230px;
    }
}

@media (max-width:767px) {
    #portal-home .ph-shortcut-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 0;
    }
}

@media (max-width:767px) {
    #portal-home .ph-shortcut + .ph-shortcut {
        border-top: 1px solid var(--portal-border);
    }
}

@media (max-width:767px) {
    #portal-home .ph-section {
        padding: 36px 0;
    }
}

@media (max-width:767px) {
    #portal-home .ph-section-top, #portal-home .ph-support {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

@media (max-width:767px) {
    #portal-home .ph-support {
        padding: 24px;
    }
}

@media (max-width:575px) {
    #portal-home .ph-wrap {
        width: calc(100% - 32px);
    }
}

@media (max-width:575px) {
    #portal-home #LatestVacancyPanels > .row, #portal-home .news-row, #portal-home .ph-service-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (max-width:575px) {
    #portal-home .ph-panel {
        padding: 24px;
    }
}

@media (max-width:575px) {
    #portal-home .ph-actions .ph-button {
        width: 100%;
    }
}

#portal-home .vacancy-panel { min-height: 0; }
#portal-home .vacancy-panel-apply { padding-top: 0; }
#portal-home #ViewAllNewsDiv { margin: 0; padding: 0; background: transparent; }

/* Homepage typography, owned by this page stylesheet. */
#portal-home {
    line-height: 1.65;
}

#portal-home h1,
#portal-home h2,
#portal-home h3 {
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

#portal-home h3 {
    font-size: var(--portal-text-section-card);
}

#portal-home .ph-kicker {
    font-size: var(--portal-text-sm);
    font-weight: 700;
}

#portal-home .ph-hero-copy > p {
    font-size: var(--portal-text-intro);
}

#portal-home .ph-button,
#portal-home .vacancy-panel-applybutton {
    font-size: var(--portal-text-control);
    font-weight: 700;
    line-height: 1.5;
}

#portal-home .ph-shortcut {
    font-weight: 700;
    font-size: var(--portal-text-control);
}

#portal-home .ph-text-link {
    font-weight: 700;
    font-size: var(--portal-text-control);
}

#portal-home .vacancy-panel-title,
#portal-home .card-news-title {
    font-size: var(--portal-text-card-title);
    line-height: 1.4;
    font-weight: 700;
}

#portal-home .vacancy-panel-type {
    font-size: var(--portal-text-tag);
}

#portal-home .vacancy-panel-salary {
    font-size: var(--portal-text-control);
    font-weight: 600;
}

#portal-home .news-panel-date {
    font-size: var(--portal-text-tag);
}

#portal-home .news-panel-description {
    font-size: var(--portal-text-md);
}

#portal-home .ph-service p {
    font-size: var(--portal-text-md);
}

#portal-home .vacancy-panel-title,
#portal-home .vacancy-panel-type,
#portal-home .vacancy-panel-title::first-letter,
#portal-home .vacancy-panel-type::first-letter { text-transform: none; }

#portal-home .ph-section h2 { font-size: 1.5rem; }
